<template>
	<view>
		<view class="SetUpView" @click="SetUpClick(1)">
			<span>隐私协议</span> 
			<image src="../../static/Right.png" style="width: 18rpx;height: 33rpx;float: right;position: relative;top: 40rpx;" mode=""></image>
		</view>
		<view class="SetUpView" @click="SetUpClick(2)">
			<span>退出登录</span>
			<image src="../../static/Right.png" style="width: 18rpx;height: 33rpx;float: right;position: relative;top: 40rpx;" mode=""></image>
		</view>
		<view class="tc" v-if="tanchuang">
			<view class="tcwhict">
				<view style="font-size: 36rpx;font-weight: bold;color: #000000;padding: 60rpx 0 30rpx 0;box-sizing: border-box;">
					温馨提示
				</view>
				<view style="font-size: 26rpx;font-weight: 500;color: #888888;margin-bottom: 60rpx;">
					您确定退出登录吗？
				</view>
				<view style="width: 206rpx;height: 69rpx;border: 1px solid #DFB080;border-radius: 35rpx;font-size: 30rpx;font-weight: bold;
								color: #DFAF80;text-align: center;line-height: 69rpx;display: inline-block;margin-right: 30rpx;" @click="SetUpClick(3)">
					取消
				</view>
				<view style="width: 206rpx;height: 69rpx;background: linear-gradient(-84deg, #DFBA94, #DFAE7C);border-radius: 35px;
						font-size: 30rpx;font-weight: bold;color: #FFFFFF;text-align: center;line-height: 69rpx;display: inline-block;" @click="SetUpClick(4)">
					确定
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
			
		},
		data() {
			return {
				tanchuang:false
			}
		},
		methods: {
			SetUpClick(index){
				var that = this;
				if(index == 1){
					uni.navigateTo({
						url:'/pages/second/PrivacyAgreement'
					})
					
				}else if(index == 2){
					that.tanchuang = true;
					// uni.removeStorageSync('token');
				}else if(index == 3){
					that.tanchuang = false;
				}else if(index == 4){
					that.tanchuang = false;
					uni.removeStorageSync('token');
					uni.clearStorage();
					uni.reLaunch({ 
					    url: '../second/Sign'
					});
				}
			}
		}
	}
</script>

<style>
	.tcwhict{
		width: 545rpx;
		height: 360rpx;
		background: #FFFFFF;
		margin: auto;
		position: relative;
		top: 35%;
		border-radius: 20rpx;
		font-family: PingFang SC;
		text-align: center;
	}
	.tc{
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		background: rgba(0,0,0,0.5);
		z-index: 999;
	}
	page{
		background: #F7F7F7;
	}
	.SetUpView{
		width: 100%;
		height: 114rpx;
		padding: 0 50rpx;
		box-sizing: border-box;
		font-size: 32rpx;font-weight: 800;color: #434343;
		line-height: 114rpx;
		font-weight: 500;
		background: #FFFFFF;
		margin-top: 20rpx;
	}
</style>
